package com.example.lottery_system.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrawPrizeParam {

    @NotEmpty(message = "中奖者名单不能为空!")
    @Valid
    private List<Winner> winnerList;
    @NotNull(message = "活动id 不能为空!")
    private Long activityId;
    @NotNull(message = "奖品id 不能为空!")
    private Long prizeId;
    @NotNull(message = "中间时间不能为空!")
    private Date winningTime;
}
